Append Item To List
AutomatR.DefaultActivities.List.AppendItemToList<T>
The "Append Item To List" activity in AutomatR, categorized under List, allows you to add an item at the end of a specified list. This activity is useful for dynamically updating and managing lists within your automation workflows.
Properties
Name | Description |
---|---|
Input | |
Appended Item | Specifies the item that you want to add at the end of the list. Variables of the appropriate type containing the item to be appended. |
List | Specifies the list to which the item should be appended. Variables of the list type containing the list to be updated. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Append Item To List" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Append Item To List" activity onto the workflow.
- Configure the properties by specifying the item to be appended and the target list.
- Optionally, configure the delay based on your requirements.
- Execute the workflow to append the specified item to the end of the list.
Example: Consider an example where the "Append Item To List" activity is used to add a new item to a list of strings:
Append Item To List:
Appended Item: "NewValue"
List: myList
In this example, the activity adds the string "NewValue" to the end of the list named "myList."